<?php
include 'TLSSigAPI.php';
//use PHPUnit\Framework\TestCase;
use Tencent\TLSSigAPI;
function testGenAndVerify($identifier, $sdkappid, $private_key){
	 $api = new TLSSigAPI();
        $api->SetAppid( $sdkappid);//设置在腾讯云申请的appid
        $api->SetPrivateKey($private_key);//生成usersig需要先设置私钥
       // $api->SetPublicKey(self::$public_key_string);//校验usersig需要先设置公钥
        $sig = $api->genSig($identifier);//生成usersig
		return $sig ;
}
